package com.ztf0337.mycurriculumdesign.Utils;

import java.util.Locale;

public class GetUtils {

    public static String generateOrderNumber() {
        // 当前时间：年月日时分秒
        String timePart = new java.text.SimpleDateFormat("yyyyMMddHHmmss", Locale.CHINA).format(new java.util.Date());
        // 3位随机数
        int randomPart = (int) (Math.random() * 900) + 100;  // 100~999
        return "ORD" + timePart + randomPart;
    }

}
